/* 核心模块 */
#define MBEDTLS_SHA256_C
#define MBEDTLS_RSA_C
#define MBEDTLS_PKCS1_V21

/* 密钥处理 */
#define MBEDTLS_PK_C
#define MBEDTLS_PK_PARSE_C
#define MBEDTLS_BIGNUM_C
#define MBEDTLS_OID_C

#define MBEDTLS_ENTROPY_C
#define MBEDTLS_THREADING_C
// #define MBEDTLS_MEMORY_BUFFER_ALLOC_C
#define MBEDTLS_THREADING_PTHREAD
#define MBEDTLS_CTR_DRBG_C//rand
#define MBEDTLS_AES_C//rand
#define MBEDTLS_ERROR_C//mbedtls_strerror
/* 数据格式 */
#define MBEDTLS_ASN1_PARSE_C
#define MBEDTLS_BASE64_C
#define MBEDTLS_PEM_PARSE_C

/* 平台支持 */
#define MBEDTLS_PLATFORM_C
#define MBEDTLS_PLATFORM_MEMORY